Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add test for overwriting replica values #166

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Nov 8, 2021

This PR adds a new test which tests for overwriting the replicas value in the default yaml template.

Fixes #165

@jsjoeio jsjoeio self-assigned this Nov 8, 2021
@jsjoeio jsjoeio changed the title feat: add helm test for ingress example feat: add test for postgres values Nov 8, 2021
@jsjoeio jsjoeio changed the title feat: add test for postgres values feat: add test for overwriting replica values Nov 8, 2021
tests/defaults_test.go Show resolved Hide resolved
tests/defaults_test.go Outdated Show resolved Hide resolved
tests/defaults_test.go Outdated Show resolved Hide resolved
tests/defaults_test.go Outdated Show resolved Hide resolved
tests/values.go Outdated Show resolved Hide resolved
Comment on lines +50 to +53
objs, err := RenderChart(chart, ValuesToOverwrite, nil, nil)
// TODO@jsjoeio - getting an error here
// error deserializing "coder/templates/coderd.yaml": yaml: line 9: mapping values are not allowed in this context
require.NoError(t, err, "failed to render chart")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jawnsy I feel like I'm so close. I'm doing something wrong though and getting this error. Any ideas?

image

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Nov 8, 2021

This is blocked until Jonathan and I fix bug in RenderChart

@jawnsy
Copy link
Contributor

jawnsy commented Dec 6, 2021

@jsjoeio I think this should be unblocked now, but may be kind of tricky as a lot of things have changed in the API. Might be best to reset your branch to the latest main and try again?

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Dec 7, 2021

I think this should be unblocked now, but may be kind of tricky as a lot of things have changed in the API. Might be best to reset your branch to the latest main and try again?

ahh good to know! I'll restart this work hopefully next week 🤞 Thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit test for overwriting replicas value
2 participants